noremap ,t :NERDTree<CR>
noremap ,w :w<CR>
noremap ,q :q<CR>
noremap J 5j
noremap K 5k
noremap H 5h
noremap L 5l
noremap <C-l> <C-w><C-l>
noremap <C-h> <C-w><C-h>
noremap <C-j> <C-w><C-j>
noremap <C-k> <C-w><C-k>
noremap `k :resize +3<CR>
noremap `j :resize -3<CR>
noremap `h :vertical resize -3<CR>
noremap `l :vertical resize +3<CR>
noremap ,a :set autochdir<CR>:set noautochdir<CR>
noremap <C-t> :terminal<CR>
noremap <space>l :nohl<CR>
noremap <space>z @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>

" ydict"
" quary words from input
noremap ,d :<C-u>Yde<CR>
" quary selected word
vnoremap <silent> <C-D> :<C-u>Ydv<CR>
" quary words from cursor position
nnoremap <leader>yc :<C-u>Ydc<CR>

" terminal of vim
tnoremap <C-n> <C-\><C-n>

" easy-align
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)

" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)

" tabe
map tn :tabe<CR>
map th :-tabnext<CR>
map tl :+tabnext<CR>

" window
map sv <C-w>t<C-w>H
map sh <C-w>t<C-w>K
